/**
 * Copyright 2010 Balaji Thennarangam.  
 */
package com.kathez.exceptions;

import java.util.logging.Level;
import java.util.logging.Logger;

import com.kathez.util.constants.KathezConstants;

/**
 * @author Balaji T
 *
 */
public class KathezException extends Exception {
	
	private final Logger LOGGER = KathezConstants.KATHEZ_LOGGER.getLogger(this.getClass());  

	/**
	 * The Serial version id
	 */
	private static final long serialVersionUID = 690857087253033330L;
	
	public KathezException(){
		super();
		LOGGER.log(Level.SEVERE, this.getMessage(), this);
	}
	
	public KathezException(Exception exception){
		super(exception);
		LOGGER.log(Level.SEVERE, this.getMessage(), this);
	}

	/**
	 * @param arg0
	 * @param arg1
	 */
	public KathezException(String arg0, Throwable arg1) {
		super(arg0, arg1);
		LOGGER.log(Level.SEVERE, this.getMessage(), this);
	}

	/**
	 * @param arg0
	 */
	public KathezException(String arg0) {
		super(arg0);
		LOGGER.log(Level.SEVERE, this.getMessage(), this);
	}

	/**
	 * @param arg0
	 */
	public KathezException(Throwable arg0) {
		super(arg0);
		LOGGER.log(Level.SEVERE, this.getMessage(), this);
	}
}
